<?php
global $VALUTA;
?>

<script language="javascript" src='<?=config_item('js_path')?>js/schet_add_small.js?<?=time()?>'></script>

<?php if($id) { ?>
	
	<script language="javascript">
	
	parent.updateSchet(<?=Auth::$user_id?>, true);
	
	</script>

<?php } else { ?>

	<h1>Добавление счёта десятки</h1>
	<form method=post action='schet/add_small' enctype='multipart/form-data' onsubmit="return checkForm(this)">
		<table class='edit' cellspacing=0 style="width:360px;">
			<tr>
				<td>Наименование</td>
				<td><input type='text' name='name' value='' style="width:95%"></td>
			</tr>
			<tr>
				<td>Валюта</td>
				<td>
					<select name='valuta'>
					<?php foreach($VALUTA as $k => $v) {?>
						<option value='<?=$k?>'><?=$v?></option>
					<?php } ?>
				</select>
				</td>
			</tr>
		</table>
		<br>
		<input type='button' name='save' value='Отмена' onclick="parent.closePop();" style='float:right'>
		<input type='submit' name='save' value='Добавить'>

	</form>

<?php } ?>

